<template>
  <div class="app">
    <AppHeader v-if="isshow"/>
    <div class="app-body">
      <Sidebar style="left:0;position: fixed;overflow: auto; " v-if="isshow"/>
      <main class="main" :class="uapstyle">
        <div class="container-fluid">
          <keep-alive><!--页面缓存-->
            <router-view></router-view>
          </keep-alive><!--页面缓存-->
        </div>
      </main>
    </div>
    <AppFooter v-if="isshow"/>
  </div>
</template>

<script>
import AppHeader from '../components/Header'
import Sidebar from '../components/Sidebar'
import AppFooter from '../components/Footer'
import {getUrlKey} from '../utils/util.js'

export default {
    name: 'full',
    //接入uap代码 begin
    data() {
        return {
            isshow: true,
            uapstyle:'isuap'
        };
    },

    mounted(){

        if(getUrlKey("isUap")=="true"){
            this.isshow=false;
            this.uapstyle='';

        }
    },
    //接入uap代码 end

    components: {
    AppHeader,
    Sidebar,
    AppFooter
  },
  computed: {
    name () {
      return this.$route.name
    },
    path (){
        return this.$route.path
    },
    list () {
      return this.$route.matched
    }
  }
}
</script>
<style>
  .isuap{margin-left: 250px; margin-top:60px;margin-bottom: 10px;}
</style>